//
//  wareCell.m
//  BeautyClother
//
//  Created by dllo on 15/8/22.
//  Copyright (c) 2015年 宋爽. All rights reserved.
//

#import "wareCell.h"

@interface wareCell ()
@property (nonatomic, assign) CGFloat offWidth;
@property (nonatomic, assign) CGFloat offHeight;

@end
@implementation wareCell

- (void)dealloc
{
    [_image release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.image = [[UIImageView alloc]init];
        [self.contentView addSubview:self.image];
        [_image release];
        self.offWidth = [[UIScreen mainScreen]bounds].size.width / 375;
        self.offHeight = [[UIScreen mainScreen]bounds].size.height / 667;
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    self.image.frame = CGRectMake(5 *_offWidth, 5 *_offHeight, self.frame.size.width - 10 *_offWidth , self.frame.size.height - 10 *_offHeight);
    
}

@end
